<?php
namespace app\api\validate;
use think\Validate;

class IDMustBePositiveInt extends BaseValidate
{
    protected $rule=[
        'id'=>'require|isPositiveInteger',
    ];
    protected $message=[
        'id'=>'id不能为空，且必须为正整数',
    ];
}